<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="步骤4：注册数据集">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="kubernetes_CSI_00010.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
  <meta name="DC.Publisher" content="20240320">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="kubernetes_CSI_00012">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>步骤4：注册数据集</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="kubernetes_CSI_00012"></a><a name="kubernetes_CSI_00012"></a>
  <h1 class="topictitle1">步骤4：注册数据集</h1>
  <div>
   <p>数据集是Kubernetes命名空间下包含指定标签的资源集合，可通过注册数据集对添加相同标签的资源进行数据保护。</p>
   <div class="section">
    <h4 class="sectiontitle">注意事项</h4>
    <p>注册数据集时，所填写的label应包含应用的所有信息，否则恢复可能失败。</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">操作步骤</h4>
    <ol>
     <li><span>选择<span class="uicontrol" id="kubernetes_CSI_00012__kubernetes_csi_00011_zh-cn_topic_0000001839142377_uicontrol846217343614">“<span id="kubernetes_CSI_00012__kubernetes_csi_00011_zh-cn_topic_0000001839142377_text1046212303610">保护</span> &gt; 容器 &gt; <span id="kubernetes_CSI_00012__kubernetes_csi_00011_zh-cn_topic_0000001839142377_text149606591485">Kubernetes CSI</span>”</span>。</span></li>
     <li><span>选择<span class="uicontrol">“数据集”</span>页签，单击<span class="uicontrol">“<span>注册</span>”</span>，注册Kubernetes CSI数据集信息。</span><p></p><p>Kubernetes CSI数据集注册信息如<a href="#kubernetes_CSI_00012__table13765154215210">表1</a>所示。</p>
      <div class="tablenoborder">
       <a name="kubernetes_CSI_00012__table13765154215210"></a><a name="table13765154215210"></a>
       <table cellpadding="4" cellspacing="0" summary="" id="kubernetes_CSI_00012__table13765154215210" frame="border" border="1" rules="all">
        <caption>
         <b>表1 </b>数据集注册信息
        </caption>
        <colgroup>
         <col style="width:25.89%">
         <col style="width:74.11%">
        </colgroup>
        <thead align="left">
         <tr>
          <th align="left" class="cellrowborder" valign="top" width="25.89%" id="mcps1.3.3.2.2.2.2.2.3.1.1"><p>参数</p></th>
          <th align="left" class="cellrowborder" valign="top" width="74.11%" id="mcps1.3.3.2.2.2.2.2.3.1.2"><p>说明</p></th>
         </tr>
        </thead>
        <tbody>
         <tr>
          <td class="cellrowborder" valign="top" width="25.89%" headers="mcps1.3.3.2.2.2.2.2.3.1.1 "><p>名称</p></td>
          <td class="cellrowborder" valign="top" width="74.11%" headers="mcps1.3.3.2.2.2.2.2.3.1.2 "><p>自定义数据集名称。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.89%" headers="mcps1.3.3.2.2.2.2.2.3.1.1 "><p>命名空间</p></td>
          <td class="cellrowborder" valign="top" width="74.11%" headers="mcps1.3.3.2.2.2.2.2.3.1.2 "><p>需要注册的数据集所在的命名空间名。</p>
           <div class="note">
            <span class="notetitle"> 说明： </span>
            <div class="notebody">
             <p>选择命名空间前，请确保注册至<span>本产品</span>的集群中已存在该命名空间。</p>
            </div>
           </div></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.89%" headers="mcps1.3.3.2.2.2.2.2.3.1.1 "><p><span>包含选择器</span></p></td>
          <td class="cellrowborder" valign="top" width="74.11%" headers="mcps1.3.3.2.2.2.2.2.3.1.2 "><p>可添加多个标签，用于指定命名空间中包含标签的资源，可在Kubernetes对应的管理平台查询资源标签，请确保待注册数据集中的所有资源都包含所添加的标签。</p>
           <div class="note">
            <span class="notetitle"> 说明： </span>
            <div class="notebody">
             <p>添加标签的资源是工作负载依赖的资源，例如有Secret、DaemonSet、Deployment、StatefulSet、ReplicaSet等。</p>
            </div>
           </div> <p>标签的Key和Value的输入值示例：</p> <pre class="screen" id="kubernetes_CSI_00012__screen22201536347">Label:<em id="kubernetes_CSI_00012__i2382632193619">app.kubernetes.io/name=mysql</em>
Key:<em id="kubernetes_CSI_00012__i159413615368">app.kubernetes.io/name</em>
Value:<em id="kubernetes_CSI_00012__i596523913363">mysql</em></pre></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.89%" headers="mcps1.3.3.2.2.2.2.2.3.1.1 "><p><span>排除选择器</span></p></td>
          <td class="cellrowborder" valign="top" width="74.11%" headers="mcps1.3.3.2.2.2.2.2.3.1.2 "><p>可添加多个标签，用于排除命名空间中包含标签的资源，可在Kubernetes对应的管理平台查询资源标签，请确保待注册数据集中的所有资源都不包含所添加的标签。</p> <p>标签的Key和Value的输入值示例：</p> <pre class="screen">Label:<em id="kubernetes_CSI_00012__kubernetes_csi_00012_i2382632193619">app.kubernetes.io/name=mysql</em>
Key:<em id="kubernetes_CSI_00012__kubernetes_csi_00012_i159413615368">app.kubernetes.io/name</em>
Value:<em id="kubernetes_CSI_00012__kubernetes_csi_00012_i596523913363">mysql</em></pre></td>
         </tr>
        </tbody>
       </table>
      </div>
      <div class="note">
       <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p>单个命名空间下最多支持创建16个数据集。</p>
       </div>
      </div> <p></p></li>
     <li><span>单击<span class="uicontrol">“<span>确定</span>”</span>。</span></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="kubernetes_CSI_00010.html">备份命名空间/数据集</a>
    </div>
   </div>
  </div>
 </body>
</html>